/* styles.css */
/* 页面整体布局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}
.disabled {
    color: gray;
    pointer-events: none;
}
.red-text {
    color: red;
}

.green-text {
    color: green;
}
/* 登出按钮样式 */
/* 定位按钮到右上角 */
#logout-button {
    position: fixed; /* 固定定位，相对于浏览器窗口 */
    top: 10px; /* 距离顶部的距离 */
    right: 10px; /* 距离右侧的距离 */
    background-color: #42b9f0; /* 按钮背景颜色 */
    color: rgb(12, 0, 0); /* 文字颜色 */
    padding: 8px 16px; /* 内边距 */
    border: none; /* 无边框 */
    cursor: pointer; /* 鼠标悬停时显示指针手势 */
    border-radius: 4px; /* 轻微的圆角 */
    z-index: 1000; /* 确保按钮位于页面其他内容之上 */
    white-space: nowrap; /* 防止按钮文本换行 */
}
@media (max-width: 480px) {
    #logout-button {
        width: 50px;
        height: 40px;
        padding: 0;
    }
}
.tab-header {
    margin-bottom: 20px;
    border-radius: 4px; /* 轻微的圆角 */
    outline: none;
}

.tab-link {
    margin-top: 20px;
    margin-left:10px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    cursor: pointer;
    outline: none;
    border-radius: 4px; /* 轻微的圆角 */
}

.tab-link:hover {
    background-color: #e9e9e9;
}

.tab-link.active {
    background-color: #e2e2e2;
}

.tab-content {
    border: 1px solid #ddd;
    padding: 20px;
    display: block;
}

.div-hide{
    display: none;
}

.tab-pane {
    display: none; /* 默认所有内容区域不显示 */
}

.tab-pane.active {
    display: block; /* 激活的内容区域可见 */
}

/* 汇总信息容器样式 */
.funds-summary-container {
    align-items: center; /* 水平居中 */
    text-align: center; /* 内部文本居中对齐 */
    width: 60%;
    margin-top: 60px; /* 与顶部的距离 */
    background-color: #add8e6;
    border-radius: 4px; /* 轻微的圆角 */
}

/* 更新时间和汇总信息行样式 */
.update-time {
    font-size: smaller;
}

/* 投资信息行样式 */
.investment-info {
    display: flex;
    justify-content: space-around;
}

/* 盈利行样式 */
.earnings-info {
    display: flex;
    justify-content: space-around;
}
.small-font {
    font-size: smaller; /* 或者使用具体的字体大小，如 font-size: 14px; */
}

.plotly-container {
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    margin-top: 20px;
}


/* 账户信息样式 */
.tab-container {
    background-color: #f8fdb6;
    align-items: center; /* 水平居中 */
    text-align: left; /* 内部文本居中对齐 */
    width: 60%;
    margin-top: 20px; /* 与顶部的距离 */
    border-radius: 4px; /* 轻微的圆角 */
}
/* 小于600px的屏幕 */
@media (max-width: 1000px) {
    .funds-summary-container, .tab-container  {
        width: 90%; /* 在小屏幕上，宽度设为90% */
        padding: 10px; /* 进一步调整内边距 */
    }
}
.form-container {
    display: flex;
    flex-direction: column; /* 垂直堆叠 */
    margin-left: 20px; /* 与左侧的距离 */
}

.form-group {
    margin-bottom: 10px; /* 每个组之间留有间隔 */
}

.form-item{
    max-width: 120px; /* 您可以根据需要调整这个值 */
    width: 50%; /* 确保它们仍然占据可用的宽度 */
}


.submit-button {
    /* 可以添加特定的宽度或其他样式 */
    margin-right: 20px; /* 将按钮推向容器的右侧 */
    align-self: flex-end; /* 按钮右对齐 */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; /* 与顶部的距离 */
    border-radius: 4px; /* 轻微的 */
}

th, td {
    border: 1px solid #925802cd; /* 设置表格的边框颜色和样式*/
    padding: 8px;
    text-align: left;
}

th {
    background-color: #ce6e07; /* 设置表格表头的颜色 */
}

.pagination-container{
    margin-right: 20px;
    bottom: 0; /* 容器底部对齐 */
    right: 0; /* 容器右侧对齐 */
    text-align: right; /* 按钮右对齐 */
    margin-top: 10px; /* 与表格底部的距离 */
}
.pagination-container button {
    /* 分页按钮样式 */
    margin-right: 20px; /* 按钮之间的间隔 */
    /* 其他按钮样式 */
  }

/* 响应式表格样式 */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
        border: none;
    }

    tr {
        margin-bottom: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }

    td {
        position: relative;
        padding: 12px 8px 12px 45%; /* 调整左内边距为45% */
        min-height: 40px; /* 确保每行有最小高度 */
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: right;
    }

    td:last-child {
        border-bottom: none; /* 最后一个单元格不需要底部边框 */
    }
    
    td:before {
        content: attr(data-title);
        position: absolute;
        left: 8px;
        top: 50%; /* 垂直居中 */
        transform: translateY(-50%); /* 垂直居中 */
        width: 40%; /* 减小宽度，给右侧数据留出更多空间 */
        padding-right: 10px;
        text-align: left;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        overflow: hidden;
        text-overflow: ellipsis; /* 文字溢出时显示省略号 */
        white-space: nowrap;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
}


body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.main-container {
    width: 96vw;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
}

.funds-summary-container {
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.summary-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 20px;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.card-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 400;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-success {
    color: #4cd964 !important;
    text-shadow: 0 0 10px rgba(76, 217, 100, 0.3);
}

.text-danger {
    color: #ff3b30 !important;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
}

.currency {
    font-size: 0.9em;
    opacity: 0.8;
    margin-right: 3px;
}

.btn-group {
    margin-top: 1.5rem;
    gap: 10px;
}

.btn-outline-primary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.plotly-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.summary-card:nth-child(1) {
    animation-delay: 0.1s;
}

.summary-card:nth-child(2) {
    animation-delay: 0.2s;
}

.summary-card:nth-child(3) {
    animation-delay: 0.3s;
}

#logout-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #dc3545;
    border: none;
    color: white;
}

@media (max-width: 768px) {
    #logout-button {
        padding: 8px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #logout-button i {
        font-size: 1.2rem;
        margin: 0;
    }
    
    #logout-button span {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-container {
        width: 100vw;
        padding: 10px;
        margin: 0;
    }

    #logout-button span {
        display: none;
    }
    #logout-button i {
        margin: 0;
    }
    #logout-button {
        padding: 8px 12px;
    }

    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        width: 100%;
        overflow-x: hidden;
    }
    .btn-group .btn {
        flex: 1;
        min-width: calc(33.33% - 5px);
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    .tab-header {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .tab-link {
        white-space: nowrap;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .plotly-container {
        height: 250px !important;
        margin: 10px 0;
    }

    .funds-summary-container {
        padding: 15px;
        margin-top: 30px;
    }

    .btn-group {
        flex-wrap: wrap;
        gap: 5px;
    }

    .btn-group .btn {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}

.plotly-container {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.tab-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    margin: 0;
    list-style: none;
}

.tab-link {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-link:hover,
.tab-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.chart-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    margin-top: 20px;
    overflow: hidden;
}

.plotly-container {
    width: 100%;
    height: 400px;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .chart-section {
        padding: 10px;
        margin-top: 10px;
    }

    .plotly-container {
        height: 300px;
    }

    .btn-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        width: 100%;
    }

    .btn-outline-primary {
        padding: 6px 8px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
}

.tab-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden; /* 禁止垂直 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1px; /* 防止边框被隐藏 */
}

/* 隐藏滚动条但保持功能 */
.nav-tabs::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .nav-tabs {
        margin: 0;
        padding: 0;
        touch-action: pan-x pan-y pinch-zoom; /* 允许水平滚动和缩放，但限制其他手势 */
    }

    .nav-tabs .nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

.nav-tabs .nav-link {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-tabs .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-tabs .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .nav-tabs {
        padding: 0;
        margin: 0 -15px;
    }

    .nav-tabs .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
    }

    .nav-tabs::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.2));
        pointer-events: none;
    }

    .scroll-indicator {
        position: absolute;
        right: 10px;
        bottom: 5px;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.6);
        animation: pulse 2s infinite;
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    max-width: 200px;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.form-select option {
    background-color: #2a5298;
    color: #ffffff;
    padding: 8px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-inputs {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.input-width-sm {
    width: 120px;
}

.input-width-md {
    width: 180px;
}

.input-width-lg {
    width: 240px;
}

@media (max-width: 768px) {
    .form-control, .form-select {
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-inputs {
        flex-direction: column;
    }

    .input-width-sm,
    .input-width-md,
    .input-width-lg {
        width: 100%;
    }
}

.table {
    color: #ffffff;
}

.table thead th {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.table tbody td {
    border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }
    
    .tab-content {
        padding: 15px;
    }
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.input-width-sm {
    max-width: 150px;
}

.input-width-md {
    max-width: 200px;
}

.input-width-lg {
    max-width: 300px;
}

.btn-width-sm {
    width: 200px;  /* 与输入框宽度一致 */
    padding: 0 15px;
    font-size: 0.95rem;
    white-space: nowrap;
    height: calc(3.5rem + 2px);  /* 与输入框保持一致的高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-width-sm .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 0.3rem;
    vertical-align: middle;
}

.btn-width-sm span {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .btn-width-sm {
        width: 100%;  /* 在移动设备上占满容器宽度 */
        height: calc(3.5rem + 2px);
        font-size: 0.9rem;
    }

    .form-actions {
        margin-left: 0;
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-inputs {
        width: 100%;
    }

    .input-width-md {
        width: 100%;
        max-width: none;
    }
}

/* 非移动设备的按钮样式 */
@media (min-width: 769px) {
    .form-actions {
        margin-left: 1rem;
    }

    .btn-width-sm {
        margin: 0;
        width: 200px;  /* 保持与输入框相同宽度 */
        max-width: 200px;  /* 限制最大宽度 */
    }

    .form-row {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .input-width-md {
        width: 200px;
        max-width: 200px;
    }
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.form-inputs {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.form-actions {
    margin-left: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.pagination .page-item {
    margin: 0 0.25rem;
}

.pagination .page-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pagination .active .page-link {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.form-select option {
    background-color: #2a5298;
    color: #ffffff;
    padding: 8px;
}



/* 针对账户查询页面的样式 */
.account-page {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 分页容器样式 */
[id$="-pagination"] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin: 15px 0;
    padding: 0 5px;
    flex-wrap: nowrap; /* 防止换行 */
    overflow-x: auto;  /* 允许水平滚动 */
    overflow-y: hidden; /* 禁止垂直滚动 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏滚动条 */
[id$="-pagination"]::-webkit-scrollbar {
    display: none;
}

/* 分页按钮样式 */
[id$="-pagination"] button {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* 防止按钮被压缩 */
}

/* 上一页和下一页按钮 */
[id$="-pagination"] button.prev,
[id$="-pagination"] button.next {
    min-width: 60px;
}

/* 激活状态的按钮样式 */
[id$="-pagination"] button.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 禁用状态的按钮样式 */
[id$="-pagination"] button.disabled {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    [id$="-pagination"] {
        justify-content: flex-start; /* 在移动设备上左对齐 */
        padding: 0 10px;
    }

    [id$="-pagination"] button {
        padding: 4px 6px;
        font-size: 0.8rem;
        min-width: 28px;
        height: 28px;
    }

    [id$="-pagination"] button.prev,
    [id$="-pagination"] button.next {
        min-width: 50px;
    }
}

/* 通用响应式调整 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-inputs {
        width: 100%;
    }

    .input-width-md {
        width: 100%;
        max-width: none;
    }

    .btn-width-sm {
        width: 100%;
        margin-top: 0.5rem;
    }

    .table-responsive {
        margin: 0 -15px;
        padding: 0 15px;
        overflow-x: hidden;
    }
}

/* 统一按钮基础样式 */
.btn-primary {
    background: linear-gradient(45deg, #1a2980, #26d0ce);
    border: none;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 208, 206, 0.3);
    background: linear-gradient(45deg, #26d0ce, #1a2980);
}

.btn-primary:active,
.btn-primary:focus {
    transform: translateY(0);
    box-shadow: none;
}

/* 移动设备的按钮样式保持不变 */
@media (max-width: 768px) {
    .btn-primary {
        width: 100%;
        font-size: 0.9rem;
        padding: 0 10px;
        height: calc(3.5rem + 2px);
    }

    .form-actions {
        margin-left: 0;
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-inputs {
        width: 100%;
    }

    .input-width-md {
        width: 100%;
        max-width: none;
    }
}

/* PC端的按钮样式调整为更常见的大小 */
@media (min-width: 769px) {
    .btn-primary {
        height: 38px;  /* 标准按钮高度 */
        padding: 0 16px;  /* 标准内边距 */
        font-size: 0.9rem;
        min-width: 80px;  /* 最小宽度 */
        max-width: 120px;  /* 最大宽度 */
    }

    .form-actions {
        margin-left: 1rem;
        display: flex;
        align-items: center;  /* 确保按钮垂直居中 */
    }

    .form-row {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .input-width-md {
        width: 200px;
        max-width: 200px;
    }
}


